package com.xiegang.serviceMap.controller;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.serviceMap.service.ServiceFromMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xieGang
 * @description
 * @date 2023/4/5 11:03
 **/

@RestController
@RequestMapping("/service")
public class ServiceController {


    @Autowired
    private ServiceFromMapService serviceFromMapService;

    @PostMapping("/add")
    public ResponseResult add(String name){
        return serviceFromMapService.add(name);
    }

}
